package com.kfm.kfmchat.service.impl;

import com.kfm.kfmchat.service.ChatService;
import org.springframework.stereotype.Service;

import org.springframework.beans.factory.annotation.Autowired;

import com.kfm.shop.domain.Chat;
import com.kfm.kfmchat.mapper.ChatMapper;

import java.util.List;

@Service
public class ChatServiceImpl implements ChatService {

    @Autowired
    private ChatMapper chatMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return chatMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(Chat record) {
        return chatMapper.insert(record);
    }

    
    public int insertSelective(Chat record) {
        return chatMapper.insertSelective(record);
    }

    
    public Chat selectByPrimaryKey(Integer id) {
        return chatMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(Chat record) {
        return chatMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Chat record) {
        return chatMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Chat> selectByIp(String ip) {
        return chatMapper.selectByIp(ip);
    }

}
